package com.usermanage.beanParam;

import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.List;
import java.util.Map;

/**
 * Created by  on 2018/9/25
 */
@Data
public class AddreessBean {
    private Integer id;

    @NotBlank(message = "订单名称 不能为空")
    @Column(name = "order_name",columnDefinition = "varchar(255) comment '订单名称'",nullable = false)
    private String order_name;//订单名称

//    @NotBlank(message = "订单编号 不能为空")
    @Column(name = "surface_id",columnDefinition = "varchar(255) comment 'PM订单编号'",nullable = false)
    private String surface_id;//订单名称

    @NotBlank(message = "供应商联系人 不能为空")
    @Column(name = "buyer",columnDefinition = "varchar(255) comment '采购员'",nullable = false)
    private String buyer;//采购员

    @NotBlank(message = "订单价格 不能为空")
    @Column(name = "price",columnDefinition = "double comment '订单金额'",nullable = false)
    private String price;//订单金额

    private String transport_price;

    private String order_source; //订单来源

    private Integer user_id;//下单员id
    private String discount;
    @NotBlank(message = "项目名称 不能为空")
    @Column(name = "project_name",columnDefinition = "varchar(255) comment '项目名称'",nullable = false)
    private String project_name;//项目名称

    @NotBlank(message = "收货人不能为空")
    @Column(name = "consignee_information",columnDefinition = "varchar(255) comment '收货人'",nullable = false)
    private String consignee_information;//收货人

//    @NotBlank(message = "收货人联系方式 不能为空")
//    @Column(name = "consignee_phone",columnDefinition = "varchar(255) comment '收货人手机'",nullable = false)
    private String consignee_name;//收货人手机

//    @NotBlank(message = "收货地址及联系方式 不能为空")
    @Column(name = "consignee_address",columnDefinition = "varchar(255) comment '收货地址及联系方式'",nullable = false)
    private String consignee_address;//收货地址

    @Column(name = "remark",columnDefinition = "varchar(255) comment '备注'",nullable = false)
    private String remark;//备注

    @Column(name = "crtTime",columnDefinition = "varchar(255) comment '备注'",nullable = false)
    private String crtTime;//订单创建时间

//    @Column(name = "arriveTime",columnDefinition = "varchar(255) comment '备注'",nullable = false)
//    private String arriveTime;//到货时间


    @Transient
    private String context;//订单信息

    @Transient
    private String type;//单据类型

    @Transient
    private Integer userGroup_id;//客户企业id

    @Transient
    private String userGroup_name;//客户企业名称

    @Transient
    private String partyA_id;//甲方企业id

    @Transient
    private String partyA_name;//甲方企业名称

    @Transient
    private String custom_company_name;//客户名称
    @Transient
    private String orderBill_id;//订单ID

//    @Transient
//    private String buyer; //下单员名称
}
